.class public Lcom/xingbook/gusturelock/LockActivity;
.super Landroid/app/Activity;

# interfaces
.implements Lcom/xingbook/gusturelock/c;


# instance fields
.field private a:Ljava/util/List;

.field private b:Lcom/xingbook/gusturelock/LockPatternView;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 0

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 0

    return-void
.end method

.method public b()V
    .locals 0

    return-void
.end method

.method public b(Ljava/util/List;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/gusturelock/LockActivity;->a:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/gusturelock/LockActivity;->finish()V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/gusturelock/LockActivity;->b:Lcom/xingbook/gusturelock/LockPatternView;

    sget-object v1, Lcom/xingbook/gusturelock/b;->c:Lcom/xingbook/gusturelock/b;

    invoke-virtual {v0, v1}, Lcom/xingbook/gusturelock/LockPatternView;->setDisplayMode(Lcom/xingbook/gusturelock/b;)V

    const v0, 0x7f0801fe

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    const-string v0, "lock"

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/gusturelock/LockActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "lock_key"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/gusturelock/LockActivity;->finish()V

    :goto_0
    return-void

    :cond_0
    invoke-static {v0}, Lcom/xingbook/gusturelock/LockPatternView;->a(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/gusturelock/LockActivity;->a:Ljava/util/List;

    const/high16 v0, 0x7f03

    invoke-virtual {p0, v0}, Lcom/xingbook/gusturelock/LockActivity;->setContentView(I)V

    const v0, 0x7f0a005d

    invoke-virtual {p0, v0}, Lcom/xingbook/gusturelock/LockActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/xingbook/gusturelock/LockPatternView;

    iput-object v0, p0, Lcom/xingbook/gusturelock/LockActivity;->b:Lcom/xingbook/gusturelock/LockPatternView;

    iget-object v0, p0, Lcom/xingbook/gusturelock/LockActivity;->b:Lcom/xingbook/gusturelock/LockPatternView;

    invoke-virtual {v0, p0}, Lcom/xingbook/gusturelock/LockPatternView;->setOnPatternListener(Lcom/xingbook/gusturelock/c;)V

    goto :goto_0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/gusturelock/LockActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    const/high16 v1, 0x7f0d

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    const/4 v0, 0x1

    return v0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
